
import request from '@/utils/request'

export function getPublication(params) {
    return request.post('/publication/get/publication', params);
}


export function deletePublication(id) {
    return request.delete(`/publication/deleteById/${id}`);
}
/**
 * 根据id来查询著作信息
 */
export function getPublicationById(id) {
    return request.get(`/publication/getPublicationById/${id}`);
}

/**
 * 更新著作信息
 */
export function updatePublication(personalAwardData) {
    return request.put('/publication/update', personalAwardData);
}

/**
 * 新增著作信息
 */
export function savePublication(personalAwardData) {
    return request.post('/publication/save', personalAwardData);
}


/**
 * 根据多个id来查询著作信息
 */
export function getPublicationsByIds(params) {
    return request.post(`/publication/getByIds`,params);
}


//批量导出excel
export function exportPublication(params) {
    return request.post('/publication/export', params,{
        responseType: 'blob'
    });
}
